package com.dbpms.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dbpms.pojo.TransferChamberInfo;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface ITransferService extends IService<TransferChamberInfo> {

    // 添加调寝申请
    public boolean addTransferInfo(TransferChamberInfo info,int student_id);

    // 按照学号id查找调寝进度
    public List<TransferChamberInfo> queryStuApplyTransferInfo(int stu_id);

    // 查找正在审核中的调寝进度
    public List<TransferChamberInfo> queryApplyInScheduleInfo();

    // 将选中的调寝记录审核通过
    @Transactional
    public int successAdjustmentApplyInfo(int apply_other_chamber_id,int old_chamber_id,int new_chamber_id,int stu_id);

    // 将选中的调寝记录审核打回
    public boolean dangerAdjustmentApplyInfo(int apply_other_chamber_id);
}
